package com.jiuyin.dianjing.util;

import android.text.TextUtils;

/**
 * @author Administrator
 */
public class ClassUtil {
    public static Class getClazz(String className, ClassLoader classLoader) {
        Class clazz = null;
        if (TextUtils.isEmpty(className) || null == classLoader) {
            return null;
        } else {
            try {
                clazz = classLoader.loadClass(className);
            } catch (ClassNotFoundException e) {
                LogUtil.logCommon(String.format("ClassUtil not find className = %s", className));
            }
            return clazz;
        }
    }
}
